package cn.tedu.system.oa.dept.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("oa_dept")
public class Dept {
    @ApiModelProperty("部门id")
    @TableId(type = IdType.AUTO)
    Integer id;
    @ApiModelProperty("部门名称")
    String deptName;
    @ApiModelProperty("负责人id")
    Integer userId;
    @ApiModelProperty("负责人名字")
    String leader;
    @ApiModelProperty("联系电话")
    String phone;
    @ApiModelProperty("部门状态")
    Integer status;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date createTime;
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date updateTime;
}
